/**
 * 				ServerMain.java
 *				------------
 *		
 *   Author:	bin04017@gmail.com
 *	 Created:	13.12.2006
 *	 Project:	MP3-Sync (Mochito)
 *	 Package:	testMains
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 */
package testMains;

import java.net.InetAddress;

import mochito.Mochito;
import mochito.MochitoType;


/**
 * @author bin04017
 *
 */
public class ServerMain {
	
	/**
	 * Starts the server and regiser it to the rmi registry
	 * 
	 * @param args -
	 *            not used
	 */
	public static void main(String[] args) {
		InetAddress addr = null;
		try {
	        addr = InetAddress.getLocalHost();
	        @SuppressWarnings("unused")
			Mochito mochito = new Mochito(MochitoType.ServerGUI,addr.getHostAddress());
	    
	    } catch (Exception e) {
	    	
	    }

		/*MusicItem item = null;
		try {
			item = new MusicItem("dance");
			item.setFile("G:/MP3/Hagenberg - HGB.mp3");
			item.setStartTime("01:35:00");
			item.setStartDate("2006/12/14");
			server.addMusicItem(item);
		} catch (RemoteException e) {
			e.printStackTrace();
		}
		server.run();*/
	}
}
